package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("业务员取消订单")
@Data
public class ClerkCancelAction extends ClerkBaseAction {

    public ClerkCancelAction() {
        super.setOrderAction(ClerkOrderActionEnum.CANCEL);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("取消原因")
    @NotNull(message = "取消原因不能为空")
    private String cancelRemark;

}
